

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'ccmonthendsetting-form',
	'enableAjaxValidation'=>true,
)); ?>

	<p class="note"><?php  echo Yii::t('application', 'Fields with <span class="required">*</span> are required.');?></p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'month'); ?>		
                <?php echo $form->textField($model,'month',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'month'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'year'); ?>		
                <?php echo $form->textField($model,'year',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'year'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dayendstatus'); ?>		
                <?php echo $form->textField($model,'dayendstatus',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'dayendstatus'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('application', 'Create') : Yii::t('application', 'Save')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->


<script type="text/javascript">
    function popupview(id, url)
    {
        jQuery.ajax({'url':url,'data':'isAjaxRequest=1&id=<?php echo get_class($model);?>_' + id,'type':'post','dataType':'json','success':function(data)
            {
                $('#dialog<?php echo get_class($model);?>_' + id +' div.divfor' + id).html(data.div);
            } ,'cache':false});
        $('#dialog<?php echo get_class($model);?>_' + id).dialog('open');
        return false;
    }
</script>
